import WebStorageCache from 'web-storage-cache'

export const useCache = (type) => {
  const wsCache = new WebStorageCache({ storage: type ? type : 'localStorage' });
  return { wsCache }
}
